#include <stdio.h>
#include <mpi.h>

int main(int argc, char **argv) {
    MPI_Init(&argc, &argv);
    int rnk;
    MPI_Comm_rank(MPI_COMM_WORLD, &rnk);
    if (!rnk) {
        int num_process;
        MPI_Comm_size(MPI_COMM_WORLD, &num_process);
        printf("There's %d processes running\n", num_process);
    }
    MPI_Finalize();
    return 0;
}

